package example.com.zcq.mymj.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import example.com.zcq.mymj.R;
import example.com.zcq.mymj.ui.TopBar;

public class FeedbackActivity extends AppCompatActivity implements View.OnClickListener {

    private TopBar mTopbarTitle;
    /**
     * 请留下您的联系方式
     */
    private EditText mEtYourTel;
    /**
     * 您的留言是我们前进的动力...
     */
    private EditText mEtYourFeed;
    /**
     * 问题提交
     */
    private Button mBtnQuesSubmit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feedback);
        initView();
    }

    private void initView() {
        mTopbarTitle = (TopBar) findViewById(R.id.topbar_title);
        mEtYourTel = (EditText) findViewById(R.id.et_your_tel);
        mEtYourFeed = (EditText) findViewById(R.id.et_your_feed);
        mBtnQuesSubmit = (Button) findViewById(R.id.btn_ques_submit);
        mBtnQuesSubmit.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.btn_ques_submit:
                FeedbackActivity.this.finish();
                Toast.makeText(this, "提交成功", Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
